package com.iwe3.protal.mapper;

import com.iwe3.protal.entity.BookTypeEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface BookTypeMapper {

    @Results({
            @Result(id = true, property = "id", column = "id"),
            @Result(property = "name", column = "name"),
            @Result(property = "createTime", column = "createtime"),
            @Result(property = "updateTime", column = "updatetime"),
            @Result(property = "state" , column = "state")
    })

    @Select("select * from t_booktype")
    List<BookTypeEntity> findAll();
}
